home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-9.10-netbook-remix-PL.iso / casper / filesystem.squashfs / etc / laptop-mode / laptop-mode.conf
Text File  |  2009-10-06  |  10KB  |  323 lines

  1. ###############################################################################
  2. #
  3. # Configuration for Laptop Mode Tools
  4. # -----------------------------------
  5. #
  6. # There is a "system" to the configuration setting names:
  7. #    CONTROL_something=0/1   Determines whether Laptop Mode Tools controls 
  8. #                            something
  9. #    LM_something=value      Value of "something" when laptop mode is active
  10. #    NOLM_something=value    Value of "something" when laptop mode is NOT
  11. #                            active
  12. #    AC_something=value      Value of "something" when the computer is running
  13. #                            on AC power
  14. #    BATT_something=value    Value of "something when the computer is running
  15. #                            on battery power
  16. #
  17. # There can be combinations of LM_/NOLM_ and AC_/BATT_ prefixes, but the
  18. # available prefixes are different for each setting. The available ones are 
  19. # documented in the manual page, laptop-mode.conf(8). If there is no LM_/
  20. # NOLM_ in a setting name, then the value is used independently of laptop
  21. # mode state, and similarly, if there is no AC_/BATT_, then the value is used
  22. # independently of power state.
  23. #
  24. # Some options only work on ACPI systems. They are marked ACPI-ONLY.
  25. #
  26. # Note that this configuration file is a fragment of shell script: you
  27. # can use all the features of the shell scripting language to achieve your
  28. # desired configuration.
  29. #
  30. # Modules
  31. # -------
  32. #
  33. # Laptop Mode Tools modules have separate configuration files, that can be
  34. # found in /etc/laptop-mode/conf.d. Please look through these configuration
  35. # files as well, there are many useful power saving tools in there!
  36. #
  37. ###############################################################################
  38.  
  39.  
  40.  
  41. ###############################################################################
  42. # Configuration debugging
  43. # -----------------------
  44. ###############################################################################
  45.  
  46.  
  47. #
  48. # Set this to 1 if you want to see a lot of information when you start/stop 
  49. # laptop_mode.
  50. #
  51. VERBOSE_OUTPUT=0
  52.  
  53.  
  54.  
  55. ###############################################################################
  56. # When to enable laptop mode
  57. # --------------------------
  58. #
  59. # "Laptop mode" is the mode in which laptop mode tools makes the computer
  60. # consume less power. This includes the kernel "laptop_mode" feature, which
  61. # allows your hard drives to spin down, as well as various other settings which
  62. # can be tweaked by laptop mode tools. You can enable or disable all of these
  63. # settings using the CONTROL_... options further down in this config file.
  64. ###############################################################################
  65.  
  66.  
  67. #
  68. # Enable laptop mode when on battery power.
  69. #
  70. ENABLE_LAPTOP_MODE_ON_BATTERY=1
  71.  
  72.  
  73. #
  74. # Enable laptop mode when on AC power.
  75. #
  76. ENABLE_LAPTOP_MODE_ON_AC=0
  77.  
  78.  
  79. #
  80. # Enable laptop mode when the laptop's lid is closed, even when we're on AC
  81. # power? (ACPI-ONLY)
  82. #
  83. ENABLE_LAPTOP_MODE_WHEN_LID_CLOSED=0
  84.  
  85.  
  86.  
  87. ###############################################################################
  88. # When to enable data loss sensitive features
  89. # -------------------------------------------
  90. #
  91. # When data loss sensitive features are disabled, laptop mode tools acts as if
  92. # laptop mode were disabled, for those features only.
  93. #
  94. # Data loss sensitive features include:
  95. # - laptop_mode (i.e., delayed writes)
  96. # - hard drive write cache
  97. #
  98. # All of the options that follow can be set to 0 in order to prevent laptop
  99. # mode tools from using them to stop data loss sensitive features. Use this
  100. # when you have a battery that reports the wrong information, that confuses
  101. # laptop mode tools.
  102. #
  103. # Disabling data loss sensitive features is ACPI-ONLY, and it only works if
  104. # your battery gives off frequent ACPI events to indicate a change in battery
  105. # level.
  106. #
  107. # NOTE: If your battery does NOT give off battery events often enough, you can
  108. # enable the battery-level-polling module to make this work. Look at the
  109. # file /etc/laptop-mode/conf.d/battery-level-polling.conf for more information.
  110. #
  111. ###############################################################################
  112.  
  113.  
  114. #
  115. # Disable all data loss sensitive features when the battery level (in % of the
  116. # battery capacity) reaches this value.
  117. #
  118. MINIMUM_BATTERY_CHARGE_PERCENT=3
  119.  
  120.  
  121. #
  122. # Disable data loss sensitive features when the battery reports its state
  123. # as "critical".
  124. #
  125. DISABLE_LAPTOP_MODE_ON_CRITICAL_BATTERY_LEVEL=1
  126.  
  127.  
  128.  
  129. ###############################################################################
  130. # Controlled hard drives and partitions
  131. # -------------------------------------
  132. #
  133. # For spinning down your hard drives, laptop mode will remount file systems and
  134. # adjust hard drive spindown timeouts. These parameters specify which
  135. # devices and partitions are affected by laptop mode.
  136. ###############################################################################
  137.  
  138.  
  139. #
  140. # The drives that laptop mode controls.
  141. # Separate them by a space, e.g. HD="/dev/hda /dev/hdb". The default is a
  142. # wildcard, which will get you all your IDE and SCSI/SATA drives.
  143. #
  144. HD="/dev/[hs]d[abcdefgh]"
  145.  
  146.  
  147. #
  148. # The partitions (or mount points) that laptop mode controls.
  149. # Separate the values by spaces. Use "auto" to indicate all partitions on drives
  150. # listed in HD. You can add things to "auto", e.g. "auto /dev/hdc3". You can
  151. # also specify mount points, e.g. "/mnt/data".
  152. #
  153. PARTITIONS="auto /dev/mapper/*"
  154.  
  155.  
  156. #
  157. # If this is enabled, laptop mode tools will assume that SCSI drives are
  158. # really SATA drives that only _look_ like SCSI drives, and will use hdparm
  159. # to control them. Set this to 0 if you have /dev/sd devices and you want
  160. # laptop mode tools to use the "sdparm" command to control them. 
  161. #
  162. ASSUME_SCSI_IS_SATA=1
  163.  
  164.  
  165. ###############################################################################
  166. # Hard drive behaviour settings
  167. # -----------------------------
  168. #
  169. # These settings specify how laptop mode tools will adjust the various
  170. # parameters of your hard drives and file systems.
  171. ###############################################################################
  172.  
  173.  
  174. #
  175. # Maximum time, in seconds, of work that you are prepared to lose when your
  176. # system crashes or power runs out. This is the maximum time that Laptop Mode
  177. # will keep unsaved data waiting in memory before spinning up your hard drive.
  178. #
  179. LM_BATT_MAX_LOST_WORK_SECONDS=600
  180. LM_AC_MAX_LOST_WORK_SECONDS=360
  181.  
  182.  
  183. #
  184. # Should laptop mode tools control readahead?
  185. #
  186. CONTROL_READAHEAD=1
  187.  
  188.  
  189. #
  190. # Read-ahead, in kilobytes. You can spin down the disk while playing MP3/OGG
  191. # by setting the disk readahead to a reasonable size, e.g. 3072 (3 MB).
  192. # Effectively, the disk will read a complete MP3 at once, and will then spin 
  193. # down while the MP3/OGG is playing. Don't set this too high, because the 
  194. # readahead is applied to _all_ files that are read from disk.
  195. #
  196. LM_READAHEAD=3072
  197. NOLM_READAHEAD=128
  198.  
  199.  
  200. #
  201. # Should laptop mode tools add the "noatime" option to the mount options when 
  202. # laptop mode is enabled?
  203. #
  204. CONTROL_NOATIME=0
  205.  
  206. # Should laptop use relatime instead of noatime? The "relatime" mount option has
  207. # more standards-compliant semantics, and allows more applications to work,
  208. # while retaining a low level of atime updates (i.e., disk writes).
  209. USE_RELATIME=1
  210.  
  211.  
  212. #
  213. # Should laptop mode tools control the hard drive idle timeout settings?
  214. #
  215. CONTROL_HD_IDLE_TIMEOUT=1
  216.  
  217.  
  218. #
  219. # Idle timeout values. (hdparm -S)
  220. # Default is 2 hours on AC (NOLM_HD_IDLE_TIMEOUT_SECONDS=7200) and 20 seconds
  221. # for battery and for AC with laptop mode on.
  222. #
  223. LM_AC_HD_IDLE_TIMEOUT_SECONDS=60
  224. LM_BATT_HD_IDLE_TIMEOUT_SECONDS=60
  225. NOLM_HD_IDLE_TIMEOUT_SECONDS=7200
  226.  
  227.  
  228. #
  229. # Should laptop mode tools control the hard drive power management settings?
  230. #
  231. CONTROL_HD_POWERMGMT=1
  232.  
  233.  
  234. #
  235. # Power management for HD (hdparm -B values)
  236. #
  237. BATT_HD_POWERMGMT=1
  238. LM_AC_HD_POWERMGMT=254
  239. NOLM_AC_HD_POWERMGMT=254
  240.  
  241.  
  242. #
  243. # Should laptop mode tools control the hard drive write cache settings?
  244. #
  245. CONTROL_HD_WRITECACHE=0
  246.  
  247.  
  248. #
  249. # Write cache settings for HD (hdparm -W values)
  250. #
  251. NOLM_AC_HD_WRITECACHE=1
  252. NOLM_BATT_HD_WRITECACHE=0
  253. LM_HD_WRITECACHE=0
  254.  
  255.  
  256.  
  257.  
  258. ###############################################################################
  259. # Settings you probably don't want to touch
  260. # -----------------------------------------
  261. #
  262. # It is usually not necessary to change these parameters. They are included
  263. # for completeness' sake.
  264. ###############################################################################
  265.  
  266.  
  267. #
  268. # Change mount options on partitions in PARTITIONS? You don't really want to
  269. # disable this. If you do, then your hard drives will probably not spin down
  270. # anymore.
  271. #
  272. CONTROL_MOUNT_OPTIONS=1
  273.  
  274.  
  275. #
  276. # Dirty synchronous ratio.  At this percentage of dirty pages the process
  277. # which calls write() does its own writeback.
  278. #
  279. LM_DIRTY_RATIO=60
  280. NOLM_DIRTY_RATIO=40
  281.  
  282.  
  283. #
  284. # Allowed dirty background ratio, in percent.  Once DIRTY_RATIO has been
  285. # exceeded, the kernel will wake pdflush which will then reduce the amount
  286. # of dirty memory to dirty_background_ratio.  Set this nice and low, so once
  287. # some writeout has commenced, we do a lot of it.
  288. #
  289. LM_DIRTY_BACKGROUND_RATIO=1
  290. NOLM_DIRTY_BACKGROUND_RATIO=10
  291.  
  292.  
  293. #
  294. # kernel default settings -- don't touch these unless you know what you're 
  295. # doing.
  296. #
  297. DEF_UPDATE=5
  298. DEF_XFS_AGE_BUFFER=15
  299. DEF_XFS_SYNC_INTERVAL=30
  300. DEF_XFS_BUFD_INTERVAL=1
  301. DEF_MAX_AGE=30
  302.  
  303.  
  304. #
  305. # This must be adjusted manually to the value of HZ in the running kernel
  306. # on 2.4, until the XFS people change their 2.4 external interfaces to work in
  307. # centisecs. This can be automated, but it's a work in progress that still
  308. # needs some fixes. On 2.6 kernels, XFS uses USER_HZ instead of HZ for
  309. # external interfaces, and that is currently always set to 100. So you don't
  310. # need to change this on 2.6.
  311. #
  312. XFS_HZ=100
  313.  
  314.  
  315. #
  316. # Seconds laptop mode has to to wait after the disk goes idle before doing
  317. # a sync.
  318. #
  319. LM_SECONDS_BEFORE_SYNC=2
  320.  
  321.  
  322.